package com.jintian.smart.kernel.core.auth;

public interface IOperator {

	IOperator SUPERADMIN = new IOperator() {

		@Override
		public boolean hasRole(String code) {
			return true;
		}

		@Override
		public boolean hasPos(String code) {
			return true;
		}

		@Override
		public boolean subordinateOrg(String code) {
			return true;
		}

		@Override
		public String getName() {
			return "系统管理员";
		}

		@Override
		public String getId() {
			return "SUPERADMIN";
		}

	};

	String getId();

	String getName();

	boolean hasRole(String code);

	boolean hasPos(String code);

	boolean subordinateOrg(String code);

	// boolean anyPermission(String... permission);

}
